package com.touni.designpattern.facadepattern;

import com.touni.designpattern.facadepattern.inter.Circle;
import com.touni.designpattern.facadepattern.inter.Rectangle;
import com.touni.designpattern.facadepattern.inter.Shape;
import com.touni.designpattern.facadepattern.inter.Square;

/**
 * @ClassName : ShapeMaker
 * @Description :
 * @Author : lwq
 * @Date: 2020-11-12 14:32
 */
public class ShapeMaker {
    private Shape circle;
    private Shape rectangle;
    private Shape square;

    public ShapeMaker(){
        this.circle = new Circle();
        this.rectangle = new Rectangle();
        this.square = new Square();
    }

    public void drawCircle(){
        circle.draw();
    }

    public void drawRectangle(){
        rectangle.draw();
    }

    public void drawSquare(){
        square.draw();
    }

}
